<?php
namespace app\api\controller;

use think\db;
class Index
{
    public function index()
    {
        return '西安数度网络科技有限公司';
    }
    public function off()
    {
       $res =  db('business')->where('bid',8)->field('up')->find();
        if($res['up'] == 0){
            echo json_encode(['res' => 1]);
        }else{
            echo json_encode(['res' => 0]);
        }
    }
}
